/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-10
 * Time: 11:48
 */
public class Main {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addIndex(0,15);
        myLinkedList.addIndex(1,15);
        myLinkedList.addIndex(2,15);
        myLinkedList.addIndex(3,15);
        myLinkedList.addIndex(4,15);
        myLinkedList.clear();
        myLinkedList.display();
    }
    public static void main3(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addIndex(0,15);
        myLinkedList.addIndex(1,15);
        myLinkedList.addIndex(2,15);
        myLinkedList.addIndex(3,15);
        myLinkedList.addIndex(4,15);
        myLinkedList.display();
        myLinkedList.addIndex(2,9);
        myLinkedList.addIndex(6,99);
        myLinkedList.addIndex(0,999);
        myLinkedList.display();
    }
    public static void main2(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(18);
        myLinkedList.addLast(19);
        myLinkedList.addLast(20);
        myLinkedList.addLast(22);
        myLinkedList.addLast(24);
        myLinkedList.display();

    }
    public static void main1(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(15);
        myLinkedList.addFirst(17);
        myLinkedList.addFirst(19);
        myLinkedList.addFirst(20);
        myLinkedList.addFirst(22);
        myLinkedList.addFirst(25);
        myLinkedList.display();
    }

}
